package com.echo.code.thread.mode.nio2;

import java.nio.file.Path;
import java.nio.file.WatchEvent.Kind;

/**
 * FileChangeEvent Created by baiyap on 2018/9/24.
 */
public class FileChangeEvent {

    private final Path path;
    private final Kind<?> kind;

    public FileChangeEvent(Path path, Kind<?> kind) {
        this.path = path;
        this.kind = kind;
    }

    public Path getPath() {
        return path;
    }

    public Kind<?> getKind() {
        return kind;
    }
}